using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace PocketPCSideShowClient
{
    static class Util
    {
        public static void MakeTransparent(Bitmap bmp, Color bgColor)
        {
            Color transparentColor = bmp.GetPixel(0, 0);
            for (int y = 0; y < bmp.Height; y++)
            {
                for (int x = 0; x < bmp.Width; x++)
                {
                    if (bmp.GetPixel(x, y) == transparentColor)
                    {
                        bmp.SetPixel(x, y, bgColor);
                    }
                }
            }
        }
    }
}
